package com.bto.solar.work.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.sql.Timestamp;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 菜单表
 * </p>
 *
 * @author adrian
 * @since 2023-08-28
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(value = "Menu对象", description = "菜单表")
public class Menu implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("父级ID")
    private Integer parentId;

    @ApiModelProperty("级别")
    private Byte level;

    @ApiModelProperty("图标")
    private String icon;

    @ApiModelProperty("url")
    private String href;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("是否显示")
    private Byte isShow;

    @ApiModelProperty("是否只有管理员才展示[0：否；1：是]")
    private Byte onlySuper;

    private Timestamp createdAt;

    private Timestamp updatedAt;
}
